mkdir -pv ${SYSDIR}/sysroot/boot/efi/EFI/BOOT
${CROSS_TARGET}-grub-mkimage \
          --directory "${SYSDIR}/sysroot/usr/lib64/grub/loongarch64-efi" \
          --prefix '(,gpt2)/boot/grub' \
          --output "${SYSDIR}/sysroot/boot/efi/EFI/BOOT/BOOTLOONGARCH64.EFI" \
          --format 'loongarch64-efi' \
          --compression 'auto' \
          ext2 part_gpt linux boot cat chain fat help iso9660 loadenv loopback ls normal probe reboot search video \
          configfile search_fs_uuid search_fs_file serial
cp -a ${SYSDIR}/sysroot/boot/efi/EFI/BOOT/BOOTLOONGARCH{64,}.EFI
mkdir -pv ${SYSDIR}/sysroot/boot/grub
cp -a ${SYSDIR}/sysroot/usr/lib64/grub/loongarch64-efi ${SYSDIR}/sysroot/boot/grub
